using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;

namespace MediaOwl.Common.ControlTemplates
{
    [StyleTypedProperty(Property = "OverlayStyle", StyleTargetType = typeof(Border))]
    public class WorkitemControl : ContentControl
    {
        #region ctor

        public WorkitemControl()
        {
            DefaultStyleKey = typeof(WorkspaceControl);
        }

        #endregion

        #region DependencyProperties for Logic

        #region DialogContextProperty
        public static readonly DependencyProperty DialogContextProperty = DependencyProperty.Register(
            "DialogContext",
            typeof(object),
            typeof(WorkitemControl),
            new PropertyMetadata(null));

        [Category("Common Properties"), Description("Gets or sets a value indicating the Dialog Context displayed to the user.")]
        public object DialogContext
        {
            get { return GetValue(DialogContextProperty); }
            set { SetValue(DialogContextProperty, value); }
        }
        #endregion

        #region BusyContextProperty
        public static readonly DependencyProperty BusyContextProperty = DependencyProperty.Register(
            "BusyContext",
            typeof(object),
            typeof(WorkitemControl),
            new PropertyMetadata(null));

        [Category("Common Properties"), Description("Gets or sets a value indicating the Busy Context displayed to the user.")]
        public object BusyContext
        {
            get { return GetValue(BusyContextProperty); }
            set { SetValue(BusyContextProperty, value); }
        }
        #endregion

        #endregion
    }
}